<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class Circular extends Model
{
    /**
     * 定义不可自动填充字段
     *
     * @var array
     * Date: 2018/7/11
     * @author Leon
     */
    protected $guarded = ['id'];

    /**
     * Date: 2018/7/11
     * @author Leon
     * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
     */
    public function users()
    {
        return $this->belongsToMany(Users::class,'user_circular_pivot','circular_id','user_id');
    }
}
